import request from '../../../utils/request';

export function getUsers () {
    return request(`/api/users`);
}
export function getComments ( id ) {
    const page = id;
    return request(`/api/comments?_page=${page}&_limit=5`);
}
export function fetch ( page = 1 ) {
    return request(`/api/posts?_page=${page}&_limit=5`);
}